//
//  MLWSearchBar.h
//  KITCHEN_STORIES
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LXSearchDelegate <NSObject>

- (void)beginSearchWithString:(NSString *)string;

@end

@interface MLWSearchBar : UIView<UISearchBarDelegate>

/** 搜索框 */
@property (nonatomic, retain) UISearchBar *searchBar;

/** 圆角属性 */
@property (nonatomic, assign) CGFloat cornerRadius;

/** 边框的宽度 */
@property (nonatomic, assign) NSInteger borderWidth;

/** 背景颜色 */
@property (nonatomic, retain) UIColor *backgroundColor;

/** 边框颜色 */
@property (nonatomic, retain) UIColor *borderColor;

/** 搜索框获取第一响应者时的遮罩层 */
@property (nonatomic, retain) UIView *searchView;

/** 自定义初始化方法 */
- (instancetype)initWithFrame:(CGRect)frame cornerRadius:(CGFloat)cornerRadius borderWidth:(NSInteger)borderWidth backgroundColor:(UIColor *)backgroundColor borderColor:(UIColor *)borderColor;

@property (nonatomic, assign) id<LXSearchDelegate> LXSearchDelegate;


@end
